<?php

use App\Admin\Repositories\Vip;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('/forward', 'ForwardController');
    $router->resource('/user', 'UserController');
    $router->resource('/dwzurl', 'DwzUrlController');
    $router->resource('/domains', 'DomainController');
    $router->resource('/vip', 'VipController');
    $router->resource('/order', 'OrderController');
    $router->get('/setting', 'SettingController@conf');
    $router->get('/zf', 'SettingController@zf');
    $router->get('/domain', 'SettingController@domain');
    $router->get('/ypay', 'SettingController@ypay');
    $router->get('/reg', 'SettingController@reg');
});
